from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1267025398.1703911
_template_filename=u'/home/joel/old-gamma/onlinelinguisticdatabase/templates/base/exportTemplates/plain_text_everything.html'
_template_uri=u'/base/exportTemplates/plain_text_everything.html'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
from webhelpers.html import escape
_exports = []


def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        keyword = context.get('keyword', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'<pre>\n')
        # SOURCE LINE 2
        __M_writer(escape(c.form.grammaticality))
        __M_writer(escape(c.form.transcription))
        __M_writer(u'\n')
        # SOURCE LINE 3
        if c.form.morphemeBreak:
            # SOURCE LINE 4
            __M_writer(escape(c.form.morphemeBreak))
            __M_writer(u'\n')
        # SOURCE LINE 6
        if c.form.morphemeGloss:
            # SOURCE LINE 7
            __M_writer(escape(c.form.morphemeGloss))
            __M_writer(u'\n')
        # SOURCE LINE 9
        for gloss in c.form.glosses:
            # SOURCE LINE 10
            __M_writer(escape(gloss.glossGrammaticality))
            __M_writer(escape(gloss.gloss))
            __M_writer(u'\n')
        # SOURCE LINE 12
        __M_writer(u'\n')
        # SOURCE LINE 13
        if c.form.comments:
            # SOURCE LINE 14
            __M_writer(u'comments: ')
            __M_writer(escape(c.form.comments.replace('\n', '')))
            __M_writer(u'\n')
        # SOURCE LINE 16
        if c.form.speakerComments:
            # SOURCE LINE 17
            __M_writer(u'speaker comments: ')
            __M_writer(escape(c.form.speakerComments.replace('\n', '')))
            __M_writer(u'\n')
        # SOURCE LINE 19
        if c.form.speaker:
            # SOURCE LINE 20
            __M_writer(u'speaker: ')
            __M_writer(escape(c.form.speaker.firstName))
            __M_writer(u' ')
            __M_writer(escape(c.form.speaker.lastName))
            __M_writer(u'\n')
        # SOURCE LINE 22
        if c.form.elicitor:
            # SOURCE LINE 23
            __M_writer(u'elicitor: ')
            __M_writer(escape(c.form.elicitor.firstName))
            __M_writer(u' ')
            __M_writer(escape(c.form.elicitor.lastName))
            __M_writer(u'\n')
        # SOURCE LINE 25
        if c.form.verifier:
            # SOURCE LINE 26
            __M_writer(u'verifier: ')
            __M_writer(escape(c.form.verifier.firstName))
            __M_writer(u' ')
            __M_writer(escape(c.form.verifier.lastName))
            __M_writer(u'\n')
        # SOURCE LINE 28
        if c.form.enterer:
            # SOURCE LINE 29
            __M_writer(u'enterer: ')
            __M_writer(escape(c.form.enterer.firstName))
            __M_writer(u' ')
            __M_writer(escape(c.form.enterer.lastName))
            __M_writer(u'\n')
        # SOURCE LINE 31
        if c.form.source:
            # SOURCE LINE 32
            __M_writer(u'source: ')
            __M_writer(escape(c.form.source.authorLastName))
            __M_writer(u' (')
            __M_writer(escape(c.form.source.year))
            __M_writer(u')\n')
        # SOURCE LINE 34
        if c.form.dateElicited:
            # SOURCE LINE 35
            __M_writer(u'date elicited: ')
            __M_writer(escape(c.form.dateElicited.strftime('%b %d, %Y')))
            __M_writer(u'\n')
        # SOURCE LINE 37
        __M_writer(u'date entered: ')
        __M_writer(escape(c.form.datetimeEntered.strftime('%b %d, %Y at %I:%M %p')))
        __M_writer(u'\ndate updated: ')
        # SOURCE LINE 38
        __M_writer(escape(c.form.datetimeModified.strftime('%b %d, %Y at %I:%M %p')))
        __M_writer(u'\n')
        # SOURCE LINE 39
        if c.form.elicitationMethod:
            # SOURCE LINE 40
            __M_writer(u'elicitation method: ')
            __M_writer(escape(c.form.elicitationMethod.name))
            __M_writer(u'\n')
        # SOURCE LINE 42
        if c.form.syntacticCategory:
            # SOURCE LINE 43
            __M_writer(u'syntactic category: ')
            __M_writer(escape(c.form.syntacticCategory.name))
            __M_writer(u'\n')
        # SOURCE LINE 45
        if c.form.keywords:
            # SOURCE LINE 46
            __M_writer(u'keywords: ')
            __M_writer(escape(', '.join([keyword.name for keyword in c.form.keywords])))
            __M_writer(u'\n')
        # SOURCE LINE 48
        __M_writer(u'</pre>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


